package com.yulinlin.authorization.modules.admin.entity;

import com.yulinlin.common.domain.SuperEntity;
import com.yulinlin.data.core.anno.JoinField;
import com.yulinlin.data.core.anno.JoinTable;
import com.yulinlin.data.core.anno.JoinWhere;
import com.yulinlin.data.core.code.type.ListString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


@Data
@ApiModel("系统用户")
@JoinTable("sys_user")
public class SysUserEntity extends SuperEntity<SysUserEntity> {



        @NotEmpty(message = "必填")
        @ApiModelProperty("账号")
        @JoinWhere
        @JoinField
        private String username;











        @NotEmpty(message = "必填")
        @ApiModelProperty("密码")
        @JoinWhere
        @JoinField
        private String password;


        //这个是角色id列表，使用级联查询加载
        @NotEmpty(message = "必填")
        @ApiModelProperty("角色集合")
        @JoinWhere
        @JoinField
        private ListString<String> sysRoleIds;







}
